package com.thinkgem.jeesite.modules.childtijianrecord.entity;

import java.util.List;

//返回的导出结果实体类
public class ChildRecordResult implements Comparable<ChildRecordResult> {

    private int gender;//性别
    private int number;//人数
    private int healthy;//健康人数
    private int thin;//
    private int normal;//性别
    private int overweight;//性别
    private int excellent;//性别
    private int pass;//性别
    private int flunk;//性别
    private int normalVision;//性别
    private int porVision;//性别
    private int blood;//性别
    private int heart;//性别
    private int luny;//性别
    private int liver;//性别
    private int mouth;//性别
    private int tooth;//性别
    private int trachoma;//性别
    private int headNeck;//性别
    private int spine;//性别
    private int chestXray;//性别
    private int limb;//性别
    private int skin;//性别
    private int lymphGland;//性别
    private String stuGrade;//年级
    private String school;//学校

    //实现compareTo用于做排序
    @Override
    public int compareTo(ChildRecordResult o) {
        if (Integer.parseInt(this.getStuGrade()) > Integer.parseInt(o.getStuGrade())) {
            return 1;
        }
        if (Integer.parseInt(this.getStuGrade()) < Integer.parseInt(o.getStuGrade())) {
            return -1;
        }
        if (Integer.parseInt(this.getStuGrade()) == Integer.parseInt(o.getStuGrade())) {
            if ("1".equals(this.getGender())) {
                return -1;
            } else
                return 1;
        }
        return 0;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getHealthy() {
        return healthy;
    }

    public void setHealthy(int healthy) {
        this.healthy = healthy;
    }

    public int getThin() {
        return thin;
    }

    public void setThin(int thin) {
        this.thin = thin;
    }

    public int getNormal() {
        return normal;
    }

    public void setNormal(int normal) {
        this.normal = normal;
    }

    public int getOverweight() {
        return overweight;
    }

    public void setOverweight(int overweight) {
        this.overweight = overweight;
    }

    public int getExcellent() {
        return excellent;
    }

    public void setExcellent(int excellent) {
        this.excellent = excellent;
    }

    public int getPass() {
        return pass;
    }

    public void setPass(int pass) {
        this.pass = pass;
    }

    public int getFlunk() {
        return flunk;
    }

    public void setFlunk(int flunk) {
        this.flunk = flunk;
    }

    public int getNormalVision() {
        return normalVision;
    }

    public void setNormalVision(int normalVision) {
        this.normalVision = normalVision;
    }

    public int getPorVision() {
        return porVision;
    }

    public void setPorVision(int porVision) {
        this.porVision = porVision;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }

    public int getHeart() {
        return heart;
    }

    public void setHeart(int heart) {
        this.heart = heart;
    }

    public int getLuny() {
        return luny;
    }

    public void setLuny(int luny) {
        this.luny = luny;
    }

    public int getLiver() {
        return liver;
    }

    public void setLiver(int liver) {
        this.liver = liver;
    }

    public int getMouth() {
        return mouth;
    }

    public void setMouth(int mouth) {
        this.mouth = mouth;
    }

    public int getTooth() {
        return tooth;
    }

    public void setTooth(int tooth) {
        this.tooth = tooth;
    }

    public int getTrachoma() {
        return trachoma;
    }

    public void setTrachoma(int trachoma) {
        this.trachoma = trachoma;
    }

    public int getHeadNeck() {
        return headNeck;
    }

    public void setHeadNeck(int headNeck) {
        this.headNeck = headNeck;
    }

    public int getSpine() {
        return spine;
    }

    public void setSpine(int spine) {
        this.spine = spine;
    }

    public int getChestXray() {
        return chestXray;
    }

    public void setChestXray(int chestXray) {
        this.chestXray = chestXray;
    }

    public int getLimb() {
        return limb;
    }

    public void setLimb(int limb) {
        this.limb = limb;
    }

    public int getSkin() {
        return skin;
    }

    public void setSkin(int skin) {
        this.skin = skin;
    }

    public int getLymphGland() {
        return lymphGland;
    }

    public void setLymphGland(int lymphGland) {
        this.lymphGland = lymphGland;
    }

    public String getStuGrade() {
        return stuGrade;
    }

    public void setStuGrade(String stuGrade) {
        this.stuGrade = stuGrade;
    }


    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    @Override
    public String toString() {
        return "ChildRecordResult{" +
                "gender=" + gender +
                ", stuGrade='" + stuGrade + '\'' +
                '}';
    }
}
